package 包装类;

public class Demo {
	public static void main(String[] args) {
			int a = 129;
			Integer i = new Integer(a); //装箱就是把基本数据类型变成对象类型
			System.out.println(i);
			int j = i.intValue(); //拆箱就是把对象类型变成基本数据类型
			System.out.println(j);
			System.out.println(j+","+i);
			
			Integer q = 23; //自动装箱  基本类型变对象类型
			int w = q; //自动拆箱 对象类型变引用类型
			
			String age = "23";
			int age1 = Integer.parseInt(age);
			System.out.println(age1);
	}
}
